﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace DMHelper.Models
{
    public class AbilityContainer
    {
        public StringField abilityName = new StringField();
        public NumericalField baseScore = new NumericalField();
        public NumericalField tempScore = new NumericalField();

        public NumericalField abilityModifier
        {
            get
            {
                return new NumericalField((baseScore.Value - 10) / 2);
            }
        }

        public NumericalField tempabilityModifier
        {
            get
            {
                return new NumericalField((tempScore.Value - 10) / 2);
            }
        }

        public AbilityContainer(String name, Int32 _baseScore)
        {
            abilityName = new StringField(name);
            baseScore = new NumericalField(_baseScore);
        }
    }
}